package com.wlyuan.open.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 请求日志
 * </p>
 *
 * @author yuanjie
 * @since 2023-02-28
 */
@Data
@TableName("t_open_api_log")
@ApiModel(value = "OpenLogDO对象", description = "请求日志")
public class OpenApiLogDO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("请求url")
    private String url;

    @ApiModelProperty("请求IP")
    private String ip;

    @ApiModelProperty("租户id")
    private Long tenantId;

    @ApiModelProperty("用户id")
    private String userId;

    @ApiModelProperty("请求参数")
    private String params;

    @ApiModelProperty("请求结果")
    private String result;

    @ApiModelProperty("创建时间")
    private LocalDateTime createAt;

    @ApiModelProperty("更新时间")
    private LocalDateTime updateAt;

    @ApiModelProperty("创建人")
    private Long createBy;

    @ApiModelProperty("更新人")
    private Long updateBy;

    private Boolean success;

    private Long respTime;

    private Long apiId;
}
